package com.allwees.core.event.annotation;

import org.springframework.context.ApplicationEvent;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface LocalEvent {

    Class<? extends ApplicationEvent> event();

    String condition() default "";

    String source() default "";
}
